﻿using System.ComponentModel;

namespace Marmat.Forms.Views
{
    namespace Grid
    {
        public class SelectionChangedEventArgs
        {
            internal DevExpress.Data.SelectionChangedEventArgs info;

            internal SelectionChangedEventArgs(DevExpress.Data.SelectionChangedEventArgs info)
            {
                this.info = info;
            }

            /// <summary>
            /// 获取一个描述如何更改集合的操作。
            /// </summary>
            /// <value></value>
            /// <returns></returns>
            /// <remarks></remarks>
            public CollectionChangeAction Action
            {
                get
                {
                    return this.info.Action;
                }
            }

            /// <summary>
            /// 标识所选状态已被更改的行。
            /// </summary>
            /// <value></value>
            /// <returns></returns>
            /// <remarks></remarks>
            public int ControllerRow
            {
                get
                {
                    return this.info.ControllerRow;
                }
            }
        }
    }
}